package com.lei.eduservice.controller;

import com.lei.utils.Result;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * Created by IntelliJ
 * Author:熊磊
 */

@RequestMapping("/edu/user")
@RestController
public class EduLoginController {

    @PostMapping("/login")
    public Result login(){


        return Result.ok().data("token","admin");
    }


    @GetMapping("/info")
    public Result info(){
        return Result.ok().data("roles","[会员]").data("name","admin").data("avatar","http://p2.gexing.com/G1/M00/D4/A7/rBACE1PwBsvCeU8KAABWYRUd3Ws742.jpg");
    }




}
